<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="WT.cid" content="">
    <meta name="WT.av" content="">
    <meta name="WT.mobile" content="18260127042">
    <!--插码--><meta name="phone" content="18260127042"><!--//插码-->
    <meta name="pageid" content="KD">
    <meta name="siteid" content="ZXTC">
    <meta name="phone" content="">
    <title>上海裔剑物联系统</title>
    <link href="__TMPL__Public/assets/css/style2012_html5.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__Public/assets/css/4gzxtc.css?1" rel="stylesheet" type="text/css">
    <link href="__TMPL__Public/assets/css/GJJGATMYDTYH.css" type="text/css" rel="stylesheet">
    <link href="__TMPL__Public/assets/css/css.css" type="text/css" rel="stylesheet">
    <link href="__TMPL__Public/assets/css/public-headerNew.css?1" rel="stylesheet" type="text/css">
    <link href="__TMPL__Public/assets/css/homeweb.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css">
    <script language="javascript" type="text/javascript" src="__TMPL__Public/assets/js/jquery-1.7.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="__TMPL__Public/assets/js/common.js"></script>
    <script language="javascript" type="text/javascript" src="__TMPL__Public/assets/js/jquery.pager.js"></script>
    <script language="javascript" type="text/javascript" src="__TMPL__Public/assets/js/swiper-3.3.1.min.js"></script>
    <script charset="UTF-8" language="javascript" src="__TMPL__Public/assets/js/jquery.url.js"></script>
    <script language="javascript" type="text/javascript" src="__TMPL__Public/assets/js/TouchSlide.1.1.js"></script>
    <style>        /*多业务*/
    .artical {            padding: 5px 0        }
    .artical p {            padding: 5px 10px 0;        }
        .sbox-head{
            border-bottom: 1px solid #ebebeb;
        }
        .btn-more{
            width: 100%;
            padding: 6px 0px;
            display: inline-block;
            text-align: center;
            color: #aaa;
        }

    </style>
    <script type="text/javascript">
        $(document).ready(function(){
            $("Meta[name='WT.mobile']").prop("content",$("#mobile").val());	});
    </script>
</head>
<body>
<header class="header clearfix">
    <span class="title-ellipsis" id="touchBusiTopBar">物联网流量业务 - 充值</span>
    <a class="back"  href="{:U('Index/index')}"></a>
    <!--<a class="r-icon r-icon1" href="http://wap.js.10086.cn/index.thtml">-->
        <!--<img src="__TMPL__Public/assets/images/header-icon-home.png">-->
    <!--</a>-->
</header>
<!--<div id="touchDZ">-->
<!--<div class="banner">-->
    <!--<a href="http://wap.js.10086.cn/GDTH.thtml">-->
        <!--<img src="__TMPL__Public/assets/images/bannerLLHB.png">-->
    <!--</a>-->
<!--</div>-->
<!--<div>-->

</div>

<div id="busiArea" class="gridMain">

<div id="pageletdiv">
    <section class="sbox">
        <div class="sbox-head" style="border-bottom: 0px;">ICCID：{$card_iccid}</div>
    </section>
    <section class="sbox">
        <div class="sbox-head">当前正在使用的套餐：</div>
        <div class="sbox-body ll-bx">
            <div class="slideBox">
                <div class="bd">
                    <div class="tempWrap" style="overflow:hidden; position:relative;"><div class="inner" id="phonedata" style="width: 600px; position: relative; overflow: hidden; padding: 0px; margin: 0px; transition-duration: 0ms; transform: translate(0px, 0px) translateZ(0px);">

                        <div class="inner-1" style="display: table-cell; vertical-align: top; width: 300px;">
                            <label class="selitem" >
                                <input type="radio" value="2000003759-70" name="sel-ll" >
                                <p onclick="return false;" class="hui-item"><span>月套餐</span><em>{$year_package.package_title_data}/月</em></p>
                                <input type="hidden" name="vlauehide" value="2G">

                            </label>

                            <if condition="!empty($card['package_data_add'])">
                            <label class="selitem"  style="line-height: 55px;width:30px;text-align: center">+</label>

                            <label class="selitem">
                                <input onclick="return false;" type="radio" value="2000003759-70" name="sel-ll">
                                <p class="hui-item"><span>增量包</span><em>{$card.package_data_add}</em></p>
                                <input type="hidden" name="vlauehide" value="2G">
                            </label>
                            </if>
                            </div>
                        </div>
                        </div>
                    </div>
					<section class="sbox" style="border-bottom: 0px;">
						<div class="sbox-head" style="border-bottom: 0px;color:#aaa;font-size:13px;">当前月套餐截止日期 <php> echo date("Y年m月",$card["package_endtime"])</php></i></div>
					</section>
                </div>
            </div>
    </section>

    <section class="sbox">
        <div class="sbox-head">增量包：</div>
        <div class="sbox-body ll-bx">
            <div class="slideBox" id="slide-ll2">
                <div class="bd">
                    <div class="tempWrap" style="overflow:hidden; position:relative;">
                        <div class="inner"  style="width: 600px; position: relative; overflow: hidden; padding: 0px; margin: 0px; transition-duration: 0ms; transform: translate(0px, 0px) translateZ(0px);">
                            <foreach name="add_list" key="mkey2" item="vo2">
                                <if condition="$mkey2%3==0">
                                    <div class="inner-<php> echo ($mkey2)+1; </php>" style="display: table-cell; vertical-align: top; width: 300px;">
                                </if>
                                <label class="selitem" onclick="return get_package('{$vo2.package_id}','{$vo2.pay_price}',0,0,this)">
                                    <input type="radio"  name="sel-ll" >
                                    <p class="hui-item"><span>{$vo2.package_title_data}</span><em>{$vo2.package_title_price}</em></p>
                                    <input type="hidden" name="vlauehide" value="2G">
                                </label>
                                <if condition="($mkey2+1)%3==0 && $mkey2 != 0">
                        </div>
                        </if>
                        </foreach>
                    </div>
                </div>
            </div>
            <div class="hd">
                <ul><li class="on">1</li><li class="">2</li></ul>
            </div>
            <section class="sbox" style="border-bottom: 0px;">
                <div class="sbox-head" style="border-bottom: 0px;color:#aaa;font-size:13px;">增量包购买后立即生效，下月自动清零</i></div>
            </section>
        </div>
    </div>
    </section>
    <a class="btn-more" id="btn_more">点击更多</a>


    <!--选择流量-->
<section class="sbox show-more">
    <div class="sbox-head">月套餐：</div>
    <div class="sbox-body ll-bx">
        <div class="slideBox" id="slide-ll">
            <div class="bd">
                <div class="tempWrap" style="overflow:hidden; position:relative;">
                    <div class="inner"  style="width: 600px; position: relative; overflow: hidden; padding: 0px; margin: 0px; transition-duration: 0ms; transform: translate(0px, 0px) translateZ(0px);">
                        <foreach name="month_list" key="mkey" item="vo">
                            <if condition="$mkey%3==0">
                                <div class="inner-<php> echo ($mkey)+1; </php>" style="display: table-cell; vertical-align: top; width: 300px;">
                            </if>
                            <label class="selitem" onclick="return get_package('{$vo.package_id}','{$vo.pay_price}',0,'{$vo.package_data}',this)">
                                <input type="radio"  name="sel-ll" >
                                <p class="hui-item"><span>{$vo.package_title_data}</span><em>{$vo.package_title_price}</em></p>
                                <input type="hidden" name="vlauehide" value="2G">
                            </label>
                            <if condition="($mkey+1)%3==0 && $mkey != 0">
                                </div>
                            </if>
                        </foreach>
                    </div>
                </div>
            </div>
            <div class="hd">
                <ul><li class="on">1</li><li class="">2</li></ul>
            </div>
			<section class="sbox" style="border-bottom: 0px;">
				<div class="sbox-head" style="border-bottom: 0px;color:#aaa;font-size:13px;">改变月套餐后需补缴新老月套餐之间的差额</i></div>
			</section>
        </div>
    </div>
</section>


<section class="sbox show-more">
    <div class="sbox-head">年续费：</div>
    <div class="sbox-body ll-bx">
        <div class="slideBox" id="slide-ll3">
            <div class="bd">
                <div class="tempWrap" style="overflow:hidden; position:relative;">
					<div class="inner"  style="width: 600px; position: relative; overflow: hidden; padding: 0px; margin: 0px; transition-duration: 0ms; transform: translate(0px, 0px) translateZ(0px);">

                    <div class="inner-1" style="display: table-cell; vertical-align: top; width: 300px;">
                        <if condition="!empty($year_package)">
                            <label class="selitem" onclick="return get_package('{$year_package.package_id}','{$year_package.pay_price}',1,0,this)">
                                <input type="radio"  name="sel-ll" >
                                <p class="hui-item"><span>{$year_package.package_title_data}</span><em>{$year_package.package_title_price}</em></p>
                                <input type="hidden" name="vlauehide" value="2G">
                            </label>
                        <else/>
                            <span>暂时没有匹配您的年续费套餐，请联系客服</span>
                        </if>
                    </div>
                </div>
                </div>
        </div>
		<section class="sbox" style="border-bottom: 0px;">
			<div class="sbox-head" style="border-bottom: 0px;color:#aaa;font-size:13px;">有效期12个月，续费至 <php> echo date("Y年m月",strtotime(date('Y-m-d',$card["package_endtime"]).'+12 month'))</php></i></div>
		</section>
    </div>
    </div>
</section>
<!--//选择流量-->
<input type="hidden" name="package_id" id="package_id" value="0"/>
<input type="hidden" name="is_year" id="is_year" value="0"/>

<!--展示最终办理结果 end-->
</div>    <!--场景介绍 业务详情-->
    <script type="text/javascript">
        pub_tab(".tab-introduce li", ".intro-text", "click");
    </script>
<script type="text/javascript">
    var user_package_data = "{$year_package.package_data}";
    var user_package_id = "{$year_package.package_id}";
    $(function(){
        $(".show-more").hide();
    });
    $(".radio").on('click',function() {
        if(!($(this).hasClass('disabled'))){
            $(this).toggleClass('cur');
        }     });

    $("#btn_more").click(function(){
       $(".show-more").show();
        $("#btn_more").hide();
    });
    var is_repeat = "";
    var c_package = "";
    function get_package(package_id,pay_price,is_year,package_data,t){
        var new_repeat = package_id+"|"+pay_price+"|"+is_year+"|"+package_data;
        console.log(is_repeat+"AA"+new_repeat);
        if(is_repeat != new_repeat){
            is_repeat = new_repeat;
            return true;
        }
        package_data = parseFloat(package_data);
        user_package_data = parseFloat(user_package_data);
        package_id = parseInt(package_id);
        user_package_id = parseInt(user_package_id);
        if(package_data>0){
            //降低流量值
            if(package_data<user_package_data){
//                if(!confirm("您确定将月套餐流量降低？")){
//                    return false;
//                }
                console.log(c_package);
                if(c_package==''){
                    c_package = t;
                    $("#alert_confirm").show();
                    return false;
                }

            }
            //重复选择月套餐
            if(package_id == user_package_id){
                $("#alert-sure-title").html("您已订购了此月套餐,请勿重复订购");
                $("#alert_sure").show();return false;
            }
        }
        $("#nowzifei").html("资费:"+pay_price+"元");
        $("#package_id").val(package_id);
        $("#is_year").val(is_year);
        c_package = '';
        return true;
    }

    function pay(){
        var package_id = $("#package_id").val();
        var is_year = $("#is_year").val();
        if(package_id == '' || is_year == '' || package_id == 0){
            $("#alert-sure-title").html("请选择您需要续费的套餐!");
            $("#alert_sure").show();return false;
        }else{
            location.href= "./index.php?g=wulian&m=index&a=pay&package_id="+package_id+"&is_year="+is_year;
        }

    }
</script>
<!--弹出框-->
<style>
    .div-alert{
        width: 80%;
        border: 1px solid #ebebeb;
        position: fixed;
        top: 40%;
        z-index: 9999;
        left: 10%;
        background: white;

    }
    .alert-title{
        font-size: 18px;
        padding: 10px 5px 10px 5px;
        text-align: center;
    }
    .alert-btn{
        border-top: 1px solid #ebebeb;
        text-align: center;
        font-size: 16px;
    }
    .alert-btn1{
        display: inline-block;
        width: 49%;
        float: left;
        height: 100%;
        border-right: 1px solid #ebebeb;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .alert-btn2{
        display: inline-block;
        width: 49%;
        float: right;
        height: 100%;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .alert-btn3{
        display: inline-block;
        width: 100%;
        height: 100%;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .div-alert-body{
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 100;
    }
</style>
<div id="alert_confirm" class="div-alert-body">
<div class="div-alert" >
    <div class="alert-title">您确定将月套餐流量降低？</div>
    <div class="alert-btn">
        <a class="alert-btn1" href="javascript:$(c_package).click();$('#alert_confirm').hide();">确定</a>
        <a class="alert-btn2" href="javascript:c_package='';$('#alert_confirm').hide();">取消</a>
    </div>
</div>
</div>
<div id="alert_sure" class="div-alert-body">
    <div class="div-alert" >
        <div class="alert-title" id="alert-sure-title">您已订购了此月套餐,请勿重复订购</div>
        <div class="alert-btn">
            <a class="alert-btn3" href="javascript:c_package='';$('#alert_sure').hide();">确定</a>
        </div>
    </div>
</div>
<footer class="footer-handle clearfix" id="footerbefore">
    <div class="footer-left">
        <p class="p1"><span id="nowzifei">0元</span></p>
    </div>
    <div class="footer-right" onclick="pay();">立即充值</div>
</footer>
             <!--弹框改页面 -->

<script type="text/javascript">
//    TouchSlide({ slideCell:"#slide-yy",titCell:".hd ul", mainCell:".bd .inner", effect:"left", delayTime:"500",interTime:"3000",autoPage:true,autoPlay:false });
    TouchSlide({ slideCell:"#slide-ll",titCell:".hd ul", mainCell:".bd .inner", effect:"left", delayTime:"500",interTime:"3000",autoPage:true,autoPlay:false});
TouchSlide({ slideCell:"#slide-ll2",titCell:".hd ul", mainCell:".bd .inner", effect:"left", delayTime:"500",interTime:"3000",autoPage:true,autoPlay:false});
TouchSlide({ slideCell:"#slide-ll3",titCell:".hd ul", mainCell:".bd .inner", effect:"left", delayTime:"500",interTime:"3000",autoPage:true,autoPlay:false});
</script>

</div></body></html>